<fieldset>
<legend><?php echo lang('DOC_BODY')?></legend>
	<?php if($rows) {?>
	<div class="column span-24 last" id="doc_body">
		<table style="width:100%;border: none;" id="rows">
			<tr>
				<th style="width: 5%;">
					#
				</th>
				<th style="width: 35%;">
					<?php echo lang('FILIAL')?>
				</th>
				<th style="width: 35%;">
					<?php echo lang('SUM')?>
				</th>
				<th style="width: 25%;">
				</th>
			</tr>
			<?php  foreach($rows as $key=>$r) {?>
			<tr id="row_<?php echo $key+1?>">
				<td><?php echo $key+1?></td>
				<td><?php echo get_filial_name_byrid($r['filial'])?><?php echo form_hidden('f_rid[]', $r['filial'])?></td>
				<td><?php echo form_input('row_sum[]', $r['sum'], 'class="text" style="width: 50px;"')?></td>
				<td>
				</td>
			</tr>
			<?php  } ?>
		</table>
	</div>
	<?php  } ?>

</fieldset>
